/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package resources;

import java.util.ResourceBundle;

/**
 *
 * @author 
 */
public class ResurcesUtil {

    public static ResourceBundle getResource(String baseName) {
        ResourceBundle resourceBundle = ResourceBundle.getBundle(baseName);
        return resourceBundle;

    }

    public static ClassLoader getClassLoader() {
        return ClassLoader.getSystemClassLoader();
    }

    public static ClassLoader getClassLoaderThread() {
        ClassLoader classLoader = null;
        classLoader = Thread.currentThread().getContextClassLoader();
        if (classLoader == null) {
            classLoader = getClassLoader();
        }
        return classLoader;
    }
}
